import {
  request
} from "../../api/request.js";

// 获取服务详情
export function getServiceDetail(data) {
  return request(
    `/api/ServiceProject/${data}`,
    "get"
  );
}

// 获取服务评价
export function getEvaluateList(id,data) {
  return request(
    `/api/ServiceProject/${id}/Evaluate`,
    "get",
    data
  );
}

// 收藏服务
export function sureCollect(id) {
  return request(
    `/api/Collectservice/${id}/CollectService`,
    "put"
  );
}

// 取消收藏服务
export function cancelCollect(id) {
  return request(
    `/api/Collectservice/${id}/Cancel`,
    "put"
  );
}
